﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YwhLib
{
    /// <summary>
    /// 居民信息
    /// </summary>
    public class Inhabitant
    {
        [FreeSql.DataAnnotations.Column(IsPrimary = true, IsIdentity = true)]
        /// <summary>
        /// 居住者ID
        /// </summary>
        public int InhabitantId { get; set; }

        /// <summary>
        /// 房屋编号
        /// </summary>
        public int RoomId { get; set; }

        /// <summary>
        /// 房屋信息，从房号那里查询的结果
        /// </summary>
        [FreeSql.DataAnnotations.Column(IsIgnore = true)]
        public Room Room { get; set; } = new Room();

        /// <summary>
        /// 期号
        /// </summary>
        public int PhaseNo { get; set; }

        /// <summary>
        /// 楼号
        /// </summary>
        public int BuildingNo { get; set; }

        /// <summary>
        /// 单元号
        /// </summary>
        public int UnitNo { get; set; }

        /// <summary>
        /// 房号
        /// </summary>
        public int RoomNo { get; set; }

        /// <summary>
        /// 产权面积
        /// </summary>
        public double Area { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 身份
        /// </summary>
        [FreeSql.DataAnnotations.Column(MapType = typeof(int))]
        public InhabitantIdentity Identity { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }

    }
}